package com.guoxin.designpattern.chapter6;

/**
 * @author guoxin
 * @date 2019/9/4
 */
public class ReadWriteLockClient {
    public static void main(String[] args) {
        final ShareData shareData = new ShareData(10);
        new ReaderWorker(shareData).start();
        new ReaderWorker(shareData).start();
        new ReaderWorker(shareData).start();
        new ReaderWorker(shareData).start();
        new ReaderWorker(shareData).start();
        new WriterWorker(shareData,"sdgsdsfdasfgadf").start();
        new WriterWorker(shareData,"PINGIEGNNISGEEG").start();
    }
}
